package com.zhuoyue.biz.core.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhuoyue.biz.core.api.domain.base.BaseDoClass;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author wjming
 * @ClassName: LocalSceneGatewayRelation
 * @Description: 场景与网关之间的关系对象信息
 * @Date 2021-07-08 13:25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`tbl_local_scene_gateway_relation`")
public class LocalSceneGatewayRelation extends BaseDoClass implements Serializable {
    public static final String COL_ID = "id";
    public static final String COL_SCENE_ID = "scene_id";
    public static final String COL_GATEWAY_ID = "gateway_id";
    public static final String COL_CONTROL_PARAM = "control_param";
    public static final String COL_CMD = "cmd";
    public static final String COL_STATE_DES = "state_des";
    public static final String COL_PURPOSE = "purpose";
    public static final String COL_STATE = "state";
    public static final String COL_CREATE_TIME = "create_time";
    public static final String COL_MODIFY_TIME = "modify_time";
    public static final String SORT = "sort";
    /**
     * 场景ID
     */
    @TableField(value = "`scene_id`")
    private String sceneId;

    /**
     * 网关类型/gateway/gateway_voice
     */
    @TableField(value = "`device_type`")
    private String deviceType;

    /**
     * 网关ID
     */
    @TableField(value = "`gateway_id`")
    private String gatewayId;

    @TableField(value = "`control_param`")
    private String controlParam;

    /**
     * 命令
     */
    @TableField(value = "`cmd`")
    private String cmd;

    /**
     * 网关状态
     */
    @TableField(value = "`state_des`")
    private String stateDes;

    /**
     * 意图
     */
    @TableField(value = "`purpose`")
    private String purpose;

    @TableField(value = "`sort`")
    private Integer sort;

    /**
     * 控制状态
     */
    @TableField(value = "`state`")
    private String state;

    private static final long serialVersionUID = 1L;
}